<?php

  include('./connectbase.php');

  $username = $_REQUEST['username'];  
  $password = $_REQUEST['password'];
  // $callback = $_REQUEST['callback']; 

  $sql = "select * from users where username='$username' and password = '$password'";

  $res = $cont->query($sql);

  if($res->num_rows>0){
    echo '{"message":"登陆成功","display":"none","color":"greenyellow"}';
  }else{
    echo '{"message":"你输入的账号和密码有误","display":"block","color":"greenyellow"}';
  }



?>